﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteTemplate.Master"
    AutoEventWireup="True" CodeBehind="PostedBy.aspx.cs" Inherits="LoveMusic.StoryListByUserView" %>

<%@ Register Src="../Shared/StoryListView.ascx" TagName="StoryListView" TagPrefix="uc" %>
<%@ Import Namespace="LoveMusic" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <% var viewData = (StoryListByUserData)ViewData.Model; %>
    <title>Music Posted By :
        <%=  Server.HtmlEncode(viewData.PostedBy)%>
        - Listen free music on ILoveThisMusic.com </title>
    <meta name="description" content="ILoveThisMusic.com - Recommended new music from user:<%= Server.HtmlEncode(viewData.PostedBy)%>" />
    <meta name="keywords" content="Recommend,new,music,user,<%=Server.HtmlEncode(viewData.PostedBy)%>,groovy" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <% var viewData = (StoryListByUserData)ViewData.Model; %>
    <div class="pageTitle">
        Posted By :
        <%= Server.HtmlEncode(viewData.PostedBy) %>
    </div>
    <% if ((viewData.Stories != null) && (viewData.Stories.Length > 0)) %>
    <%{%>
    <uc:StoryListView runat="server"></uc:StoryListView>
    <%}%>
    <%else%>
    <%{%>
    <span class="pageMessage">No song submitted by this user.</span>
    <%}%>
</asp:Content>
